# 导入urllib库：完成向服务器发送请求
import urllib.request

headers ={'User-Agent':''}


response = urllib.request.urlopen("http://www.baidu.com")
url1=response.getcode()
# print(response.info())
# print(url1)
result = response.read()
print(result)